/**
 * losenote.com Inc.
 * Copyright (c) 2013-2013 All Rights Reserved.
 */
package com.losenote.service.result;

import com.losenote.enums.LnResultCodeEnum;
import com.losenote.model.UserInfo;

/**
 * 精准用户信息result
 * 
 * @author danjingyu
 * @version $Id: UserInfoResult.java, v 0.1 2013-10-31 上午10:04:24 danjingyu Exp $
 */
public class UserInfoResult extends LnResult {

    private static final long serialVersionUID = 1L;

    /**用户信息*/
    private UserInfo          userInfo;

    /**
     * 默认构造函数
     */
    public UserInfoResult() {

    }

    /**
     * 默认构造函数
     * 
     * @param userInfo
     */
    public UserInfoResult(UserInfo userInfo) {
        this.success = true;
        this.code = LnResultCodeEnum.SUCCESS.getCode();
        this.message = LnResultCodeEnum.SUCCESS.getDescription();
        this.userInfo = userInfo;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

}
